﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class STaskRoutineTaskRefreshInfo extends IMessageBase
    {
        public var type:int;
        public var name:String;
        public var taskcode:int;
        public var count:int;
        public var fromStar:int;
        public var oldcolor:int;
        public var color:int;
        public const _type:int = 16011;
        public static var _regist:STaskRoutineTaskRefreshInfo = new STaskRoutineTaskRefreshInfo(true);

        public function STaskRoutineTaskRefreshInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new STaskRoutineTaskRefreshInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.type);
            param1.writeString(this.name);
            param1.writeInt(this.taskcode);
            param1.writeInt(this.count);
            param1.writeInt(this.fromStar);
            param1.writeInt(this.oldcolor);
            param1.writeInt(this.color);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.type = param1.readInt();
            this.name = param1.readString();
            this.taskcode = param1.readInt();
            this.count = param1.readInt();
            this.fromStar = param1.readInt();
            this.oldcolor = param1.readInt();
            this.color = param1.readInt();
            return;
        }// end function

    }
}
